﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Northwind.NET.Model
{
    public class EmbeddedCategory
    {
        public int ID { get; set; }

        public string Name { get; set; }
        public string Description { get; set; }


        public static explicit operator Category(EmbeddedCategory category)
        {
            return new Category() { ID = category.ID, Name = category.Name, Description = category.Description };
        }
    }
}
